﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SessionDetail.cs" company="Donga CS">
//   2011
// </copyright>
// <summary>
//   The SessionDetail.
// </summary>
// --------------------------------------------------------------------------------------------------------------------


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DONGACS.Common
{
    public class SessionDetail
    {
        private int _userid;

        /// <summary>
        /// Gets or sets USERID.
        /// </summary>
        public void SetUSERID(int value)
        {
            _userid = value;
        }

        /// <summary>
        /// Gets or sets USERID.
        /// </summary>
        public int GetUSERID()
        {
            return _userid;
        }

        private string _username;

        /// <summary>
        /// Gets or sets USERNAME.
        /// </summary>
        public void SetUSERNAME(string value)
        {
            _username = value;
        }

        /// <summary>
        /// Gets or sets USERNAME.
        /// </summary>
        public string GetUSERNAME()
        {
            return _username;
        }


        private string _password;

        public void SetPASSWORD(string value)
        {
            _password = value;
        }

        public string GetPASSWORD()
        {
            return _password;
        }

        private string _firstname;

        /// <summary>
        /// Gets or sets FIRSTNAME.
        /// </summary>
        public void SetFIRSTNAME(string value)
        {
            _firstname = value;
        }

        /// <summary>
        /// Gets or sets FIRSTNAME.
        /// </summary>
        public string GetFIRSTNAME()
        {
            return _firstname;
        }

        private string _lastname;

        /// <summary>
        /// Gets or sets LASTNAME.
        /// </summary>
        public void SetLASTNAME(string value)
        {
            _lastname = value;
        }

        /// <summary>
        /// Gets or sets LASTNAME.
        /// </summary>
        public string GetLASTNAME()
        {
            return _lastname;
        }

        private int _department;

        /// <summary>
        /// Gets or sets Department.
        /// </summary>
        public void SetDEPARTMENT(int value)
        {
            _department = value;
        }

        /// <summary>
        /// Gets or sets Department.
        /// </summary>
        public int GetDEPARTMENT()
        {
            return _department;
        }

        private int _jobtitle;

        /// <summary>
        /// Gets or sets JobTitle.
        /// </summary>
        public void SetJOBTITLE(int value)
        {
            _jobtitle = value;
        }

        /// <summary>
        /// Gets or sets JobTitle.
        /// </summary>
        public int GetJOBTITLE()
        {
            return _jobtitle;
        }

        private string _email;

        /// <summary>
        /// Gets or sets MESSENGER_ID.
        /// </summary>
        public void SetEMAIL(string value)
        {
            _email = value;
        }

        /// <summary>
        /// Gets or sets MESSENGER_ID.
        /// </summary>
        public string GetEMAIL()
        {
            return _email;
        }

        private bool _isadmin;

        /// <summary>
        /// Gets or sets ISADMIN.
        /// </summary>
        public void SetISADMIN(bool value)
        {
            _isadmin = value;
        }

        /// <summary>
        /// Gets or sets ISADMIN.
        /// </summary>
        public bool GetISADMIN()
        {
            return _isadmin;
        }

        private DateTime _lastLogin;

        /// <summary>
        /// Gets or sets LAST_LOGIN.
        /// </summary>
        public void SetLAST_LOGIN(DateTime value)
        {
            _lastLogin = value;
        }

        /// <summary>
        /// Gets or sets LAST_LOGIN.
        /// </summary>
        public DateTime GetLAST_LOGIN()
        {
            return _lastLogin;
        }

        private List<string> _permissionList;

        /// <summary>
        /// Gets or sets the module function list.
        /// </summary>
        /// <param name="value"> The module function list. </param>
        public void SetPermissionList(List<string> value)
        {
            _permissionList = value;
        }

        /// <summary>
        /// Gets or sets the module function list.
        /// </summary>
        /// <returns> The module function list. </returns>
        public List<string> GetPermissionList()
        {
            return _permissionList;
        }


        public void Clear()
        {
            SetUSERID(0);
            SetUSERNAME(null);
            SetPASSWORD(null);
            SetLASTNAME(null);
            SetFIRSTNAME(null);
            SetDEPARTMENT(0);
            SetJOBTITLE(0);
            SetISADMIN(false);
            SetEMAIL(null);
            SetLAST_LOGIN(DateTime.Now);
            SetPermissionList(null);
        }
    
    }
}
